﻿using PMS.Data.Entities.Stores;
using PMS.Services.EntityServices;

namespace PMS.Services.EventHandler.Caching
{
    /// <summary>
    /// Represents a store cache event consumer
    /// </summary>
    public partial class StoreCacheEventHandler : CacheEventHandler<Store>
    {
        protected override void ClearCache(Store entity, EntityEventType entityEventType)
        {
            ClearCache(entity);            
        }
        /// <summary>
        /// Clear cache data
        /// </summary>
        /// <param name="entity">Entity</param>
        protected override void ClearCache(Store entity)
        {
            Remove(CacheKeyConfigs.StoresAllCacheKey);
        }
    }

}
